package com.viphuli.app.tool.fragment;

import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;
import butterknife.Bind;

import com.viphuli.app.tool.R;

/**
 *  信息修改
 *  
 * @author li.li
 *
 */
public class UpdateInfoFragment extends BaseProgressFragment {

	@Bind(R.id.id_update_info_item)
	protected TextView contentText;

	protected Bundle args;

	@Override
	protected int obtainContentRes() {
		return R.layout.frag_update_info;
	}

	@Override
	protected void initParams() {

		args = getArguments();

	}

	@Override
	protected void initView() {

		caller.getLeftTitle().setVisibility(View.VISIBLE);
		caller.getLeftTitle().setText("取消");
		caller.getLeftTitle().setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View view) {
				onBackPressed();
			}
		});

	}

	@Override
	protected void initData() {
		
		String content = args.getString("content");
		contentText.setText(content);

	}

	@Override
	public boolean isShowBack() {
		return false;
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getActivity().getMenuInflater().inflate(R.menu.menu_update_info, menu);

		return true;
	}

}
